﻿using System;

namespace Microsoft.Xna.Framework.Graphics
{
	/// <summary>
	/// Arguments for a ResourceDestroyed event.
	/// </summary>
	public sealed class ResourceDestroyedEventArgs : EventArgs
	{
		internal string name;
		internal object tag;

		/// <summary>
		/// Gets the name of the destroyed resource.
		/// </summary>
		public string Name { get { return name; } }

		/// <summary>
		/// Gets the resource manager tag of the destroyed resource.
		/// </summary>
		public object Tag { get { return tag; } }

		internal ResourceDestroyedEventArgs(string name, object tag)
		{
			this.name = name;
			this.tag = tag;
		}
	}
}
